package org.example.pmsystem.mapper;

import org.example.pmsystem.entity.StaffLeave;

import java.util.List;

public interface StaffLeaveMapper {
    //通过员工编号获得请假记录
    List<StaffLeave> selectStaffLeaveBySno(String sNo);
    //通过部门获得请假记录
    List<StaffLeave> selectAllStaffLeaveByDep(String sDep);
    //通过请假状态获得请假记录
    List<StaffLeave> selectAllStaffLeaveByStatus(String appStatus);
    //插入请假记录
    void insertStaffLeave(StaffLeave staffLeave);
    //更新员工请假状态
    void updateStaffLeaveStatus(StaffLeave staffLeave);
    void updateStaffLeave(StaffLeave staffLeave);
    StaffLeave selectStaffLeaveByLeaveno(int leaveno);
}